<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: FIFO functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__hppass__sar__fifo.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">FIFO functions<div class="ingroups"><a class="el" href="group__group__hppass.html">HPPASS       (High Performance Programmable Analog Sub-System)</a> &raquo; <a class="el" href="group__group__hppass__sar.html">SAR (Successive-Approximation Register Analogue to Digital Converter)</a> &raquo; <a class="el" href="group__group__hppass__sar__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga814a01c42625c5755e99ba3d93980cbe"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__hppass__enums.html#ga14c32a49b351302efcaf56b2e5075e00">cy_en_hppass_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#ga814a01c42625c5755e99ba3d93980cbe">Cy_HPPASS_FIFO_Config</a> (const <a class="el" href="structcy__stc__hppass__fifo__t.html">cy_stc_hppass_fifo_t</a> *fifoCfg)</td></tr>
<tr class="memdesc:ga814a01c42625c5755e99ba3d93980cbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the FIFO buffer.  <a href="#ga814a01c42625c5755e99ba3d93980cbe">More...</a><br /></td></tr>
<tr class="separator:ga814a01c42625c5755e99ba3d93980cbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacb0574d1466efd24f8ff6008f5693e64"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#gacb0574d1466efd24f8ff6008f5693e64">Cy_HPPASS_FIFO_GetSampleCount</a> (uint8_t fifoIdx)</td></tr>
<tr class="memdesc:gacb0574d1466efd24f8ff6008f5693e64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of accumulated data words.  <a href="#gacb0574d1466efd24f8ff6008f5693e64">More...</a><br /></td></tr>
<tr class="separator:gacb0574d1466efd24f8ff6008f5693e64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf37c890df7eae7506b5f05b9eb780c9a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#gaf37c890df7eae7506b5f05b9eb780c9a">Cy_HPPASS_FIFO_Read</a> (uint8_t fifoIdx, uint8_t *chanIdx)</td></tr>
<tr class="memdesc:gaf37c890df7eae7506b5f05b9eb780c9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the FIFO data word and the channel index.  <a href="#gaf37c890df7eae7506b5f05b9eb780c9a">More...</a><br /></td></tr>
<tr class="separator:gaf37c890df7eae7506b5f05b9eb780c9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4eacec8b8f6ee8c9eff48f3a7ec57584"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#ga4eacec8b8f6ee8c9eff48f3a7ec57584">Cy_HPPASS_FIFO_ReadAll</a> (uint8_t fifoIdx, int16_t *data, uint8_t *chanIdxs)</td></tr>
<tr class="memdesc:ga4eacec8b8f6ee8c9eff48f3a7ec57584"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads all the FIFO payload into the array.  <a href="#ga4eacec8b8f6ee8c9eff48f3a7ec57584">More...</a><br /></td></tr>
<tr class="separator:ga4eacec8b8f6ee8c9eff48f3a7ec57584"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga19ef3c56cc8ef1a62236b0799a5ebb40"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#ga19ef3c56cc8ef1a62236b0799a5ebb40">Cy_HPPASS_FIFO_GetInterruptStatus</a> (void)</td></tr>
<tr class="memdesc:ga19ef3c56cc8ef1a62236b0799a5ebb40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the interrupt register status for the specified FIFO.  <a href="#ga19ef3c56cc8ef1a62236b0799a5ebb40">More...</a><br /></td></tr>
<tr class="separator:ga19ef3c56cc8ef1a62236b0799a5ebb40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab2ede94a7377c9eff50b5a975bf19679"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#gab2ede94a7377c9eff50b5a975bf19679">Cy_HPPASS_FIFO_SetInterrupt</a> (uint32_t interrupt)</td></tr>
<tr class="memdesc:gab2ede94a7377c9eff50b5a975bf19679"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a software interrupt request for the specified FIFO.  <a href="#gab2ede94a7377c9eff50b5a975bf19679">More...</a><br /></td></tr>
<tr class="separator:gab2ede94a7377c9eff50b5a975bf19679"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaea4bacaa1db29fe724bbe6a55b67d1f4"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#gaea4bacaa1db29fe724bbe6a55b67d1f4">Cy_HPPASS_FIFO_ClearInterrupt</a> (uint32_t interrupt)</td></tr>
<tr class="memdesc:gaea4bacaa1db29fe724bbe6a55b67d1f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the interrupt for the specified FIFO.  <a href="#gaea4bacaa1db29fe724bbe6a55b67d1f4">More...</a><br /></td></tr>
<tr class="separator:gaea4bacaa1db29fe724bbe6a55b67d1f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga72012349c483c5a88064db46507a9289"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#ga72012349c483c5a88064db46507a9289">Cy_HPPASS_FIFO_SetInterruptMask</a> (uint32_t interrupt)</td></tr>
<tr class="memdesc:ga72012349c483c5a88064db46507a9289"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the interrupt for the specified FIFO.  <a href="#ga72012349c483c5a88064db46507a9289">More...</a><br /></td></tr>
<tr class="separator:ga72012349c483c5a88064db46507a9289"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad9dbfe7a82adbf9de2aa0c56ad29d2e1"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#gad9dbfe7a82adbf9de2aa0c56ad29d2e1">Cy_HPPASS_FIFO_GetInterruptMask</a> (void)</td></tr>
<tr class="memdesc:gad9dbfe7a82adbf9de2aa0c56ad29d2e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the interrupt mask for the specified FIFO.  <a href="#gad9dbfe7a82adbf9de2aa0c56ad29d2e1">More...</a><br /></td></tr>
<tr class="separator:gad9dbfe7a82adbf9de2aa0c56ad29d2e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gada81fb37fe9ba7fd8001c27c461a9d18"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__hppass__sar__fifo.html#gada81fb37fe9ba7fd8001c27c461a9d18">Cy_HPPASS_FIFO_GetInterruptStatusMasked</a> (void)</td></tr>
<tr class="memdesc:gada81fb37fe9ba7fd8001c27c461a9d18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets all FIFOs interrupt masked status.  <a href="#gada81fb37fe9ba7fd8001c27c461a9d18">More...</a><br /></td></tr>
<tr class="separator:gada81fb37fe9ba7fd8001c27c461a9d18"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga814a01c42625c5755e99ba3d93980cbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga814a01c42625c5755e99ba3d93980cbe">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_Config()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__hppass__enums.html#ga14c32a49b351302efcaf56b2e5075e00">cy_en_hppass_status_t</a> Cy_HPPASS_FIFO_Config </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structcy__stc__hppass__fifo__t.html">cy_stc_hppass_fifo_t</a> *&#160;</td>
          <td class="paramname"><em>fifoCfg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the FIFO buffer. </p>
<dl class="section note"><dt>Note</dt><dd>If AC is running this configuration is not allowed (<a class="el" href="group__group__hppass__enums.html#gga14c32a49b351302efcaf56b2e5075e00a7f6c5e025421582710cadfffcada200c">CY_HPPASS_AC_INVALID_STATE</a> will be returned).</dd>
<dd>
If the SAR block is currently busy the initialization is not allowed (<a class="el" href="group__group__hppass__enums.html#gga14c32a49b351302efcaf56b2e5075e00a1b8592bb519e24c005a10ee1d49a8c58">CY_HPPASS_SAR_INVALID_STATE</a> will be returned).</dd>
<dd>
Since the 'block ready' status is combined SAR and CSG, this particular SAR function cannot be protected from reinitialization during the 'block ready' == true condition, so it is on user's responsibility when and from where to call this function to reconfigure this SAR sub-block.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fifoCfg</td><td>Pointer to the FIFO buffer structure <a class="el" href="structcy__stc__hppass__fifo__t.html">cy_stc_hppass_fifo_t</a>. The pointer cannot be NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status, <a class="el" href="group__group__hppass__enums.html#ga14c32a49b351302efcaf56b2e5075e00">cy_en_hppass_status_t</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line"><a class="code" href="structcy__stc__hppass__fifo__t.html">cy_stc_hppass_fifo_t</a> fifoCfg =</div><div class="line">{</div><div class="line">    .<a class="code" href="structcy__stc__hppass__fifo__t.html#a16eb78c719c3a28ef6871250e7e828a1">mode</a> = <a class="code" href="group__group__hppass__sar__enums.html#ggaaa01426f79c40add9ab61395600d0b79a45ff7fcd7cb869e80e66fe038759bf25">CY_HPPASS_FIFO_1_32</a>,  <span class="comment">/* Use single 32-entry FIFO buffer */</span></div><div class="line">    .trigMsk = 0U,                 <span class="comment">/* Triggers disabled */</span></div><div class="line">    .level = {15, 0, 0, 0}        <span class="comment">/* Set level threshhold to 15 */</span></div><div class="line">};</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Update FIFO configuration */</span></div><div class="line">    status = <a class="code" href="group__group__hppass__sar__fifo.html#ga814a01c42625c5755e99ba3d93980cbe">Cy_HPPASS_FIFO_Config</a>(&amp;fifoCfg);</div><div class="line">    <span class="comment">/* Process returned status */</span></div></div><!-- fragment -->
</div>
</div>
<a id="gacb0574d1466efd24f8ff6008f5693e64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacb0574d1466efd24f8ff6008f5693e64">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_GetSampleCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint8_t Cy_HPPASS_FIFO_GetSampleCount </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fifoIdx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the number of accumulated data words. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fifoIdx</td><td>The index of the FIFO part. Valid range 0..3, but depends on <a class="el" href="structcy__stc__hppass__fifo__t.html#a16eb78c719c3a28ef6871250e7e828a1">cy_stc_hppass_fifo_t::mode</a> setting.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of accumulated data words. If fifoIdx is out of range then zero is returned.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Get the number of accumulated data words in FIFO#0 */</span></div><div class="line">    uint8_t sampleCount = <a class="code" href="group__group__hppass__sar__fifo.html#gacb0574d1466efd24f8ff6008f5693e64">Cy_HPPASS_FIFO_GetSampleCount</a>(0U);</div><div class="line">    <span class="comment">/* Process returned sampleCount */</span></div></div><!-- fragment -->
</div>
</div>
<a id="gaf37c890df7eae7506b5f05b9eb780c9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf37c890df7eae7506b5f05b9eb780c9a">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_Read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE int16_t Cy_HPPASS_FIFO_Read </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fifoIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>chanIdx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the FIFO data word and the channel index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fifoIdx</td><td>The index of the FIFO part. Valid range 0..3, but depends on <a class="el" href="structcy__stc__hppass__fifo__t.html#a16eb78c719c3a28ef6871250e7e828a1">cy_stc_hppass_fifo_t::mode</a> setting</td></tr>
    <tr><td class="paramname">chanIdx</td><td>The pointer to the variable to store channel index <a class="el" href="group__group__hppass__sar__chan__idx.html">Channel Indexes</a>. This is optional - the pointer may be NULL (if channel index is not needed).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the FIFO data word If fifoIdx is out of range then zero is returned.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Read FIFO#0 values and channel indexes into arrays */</span></div><div class="line">    <span class="keywordflow">for</span> (uint8_t i = 0U; i &lt; sampleCount; i++)</div><div class="line">    {</div><div class="line">        data[i] = <a class="code" href="group__group__hppass__sar__fifo.html#gaf37c890df7eae7506b5f05b9eb780c9a">Cy_HPPASS_FIFO_Read</a>(0U, &amp;chanIdxs[i]);</div><div class="line">    }</div></div><!-- fragment -->
</div>
</div>
<a id="ga4eacec8b8f6ee8c9eff48f3a7ec57584"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4eacec8b8f6ee8c9eff48f3a7ec57584">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_ReadAll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t Cy_HPPASS_FIFO_ReadAll </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fifoIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>chanIdxs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Loads all the FIFO payload into the array. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fifoIdx</td><td>The index of the FIFO buffer. Valid range 0..3, but depends on <a class="el" href="structcy__stc__hppass__fifo__t.html#a16eb78c719c3a28ef6871250e7e828a1">cy_stc_hppass_fifo_t::mode</a> setting</td></tr>
    <tr><td class="paramname">data</td><td>Pointer to the data array User is responsible for enough array size, it depends on <a class="el" href="structcy__stc__hppass__fifo__t.html#a16eb78c719c3a28ef6871250e7e828a1">cy_stc_hppass_fifo_t::mode</a> setting</td></tr>
    <tr><td class="paramname">chanIdxs</td><td>Pointer to the array to store channel indexes <a class="el" href="group__group__hppass__sar__chan__idx.html">Channel Indexes</a>. User is responsible for enough array size, it depends on <a class="el" href="structcy__stc__hppass__fifo__t.html#a16eb78c719c3a28ef6871250e7e828a1">cy_stc_hppass_fifo_t::mode</a> setting Also this is optional - the pointer may be NULL (if channel indexes are not needed).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of loaded data words</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Read all FIFO#0 values and channel indexes */</span></div><div class="line">    sampleCount = <a class="code" href="group__group__hppass__sar__fifo.html#ga4eacec8b8f6ee8c9eff48f3a7ec57584">Cy_HPPASS_FIFO_ReadAll</a>(0U, data, chanIdxs);</div><div class="line">    <span class="comment">/* Process returned sampleCount */</span></div></div><!-- fragment -->
</div>
</div>
<a id="ga19ef3c56cc8ef1a62236b0799a5ebb40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga19ef3c56cc8ef1a62236b0799a5ebb40">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_GetInterruptStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_HPPASS_FIFO_GetInterruptStatus </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the interrupt register status for the specified FIFO. </p>
<dl class="section return"><dt>Returns</dt><dd>The status of combined interrupt requests for the FIFO <a class="el" href="group__group__hppass__fifo__level__interrupts.html">Group_hppass_fifo_level_interrupts</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Read FIFO interrupt status */</span></div><div class="line">    interrupt = <a class="code" href="group__group__hppass__sar__fifo.html#ga19ef3c56cc8ef1a62236b0799a5ebb40">Cy_HPPASS_FIFO_GetInterruptStatus</a>();</div><div class="line">    <span class="comment">/* Process returned interrupt status of combined requests */</span></div></div><!-- fragment -->
</div>
</div>
<a id="gab2ede94a7377c9eff50b5a975bf19679"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab2ede94a7377c9eff50b5a975bf19679">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_SetInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_HPPASS_FIFO_SetInterrupt </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a software interrupt request for the specified FIFO. </p>
<dl class="section note"><dt>Note</dt><dd>This function works slightly different than any regular _SetInterrupt function (for example <a class="el" href="group__group__hppass__rt__functions.html#ga98877ae8b15b10c0f455b20f953d7c88">Cy_HPPASS_SetInterrupt</a>), because of different HPPASS_FIFO_INTR/INTR_SET level-based register behavior. See TRM for details.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">interrupt</td><td>The mask of interrupts to be set. Each bit of this mask is responsible for triggering of the particular interrupt in the FIFO <a class="el" href="group__group__hppass__fifo__level__interrupts.html">Group_hppass_fifo_level_interrupts</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Activate FIFO#1 level interrupt */</span></div><div class="line">    <a class="code" href="group__group__hppass__sar__fifo.html#gab2ede94a7377c9eff50b5a975bf19679">Cy_HPPASS_FIFO_SetInterrupt</a>(<a class="code" href="group__group__hppass__fifo__level__interrupts.html#ga4267477619718a6dee7f45e7789dda9b">CY_HPPASS_INTR_FIFO_1_LEVEL</a>);</div></div><!-- fragment -->
</div>
</div>
<a id="gaea4bacaa1db29fe724bbe6a55b67d1f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaea4bacaa1db29fe724bbe6a55b67d1f4">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_ClearInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_HPPASS_FIFO_ClearInterrupt </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the interrupt for the specified FIFO. </p>
<dl class="section note"><dt>Note</dt><dd>This function works slightly different than any regular _ClearInterrupt function (for example <a class="el" href="group__group__hppass__rt__functions.html#ga8e640f7c9f0c7e3622b27e256e1197c5">Cy_HPPASS_ClearInterrupt</a>), because of different HPPASS_FIFO_INTR/INTR_SET level-based registers behavior. See TRM for details.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">interrupt</td><td>The mask of interrupts to be cleared. Each bit of this mask is responsible for triggering of the particular interrupt in the FIFO <a class="el" href="group__group__hppass__fifo__level__interrupts.html">Group_hppass_fifo_level_interrupts</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Clear FIFO level interrupt */</span></div><div class="line">    <a class="code" href="group__group__hppass__sar__fifo.html#gaea4bacaa1db29fe724bbe6a55b67d1f4">Cy_HPPASS_FIFO_ClearInterrupt</a>(<a class="code" href="group__group__hppass__fifo__level__interrupts.html#ga00744ed7f65c4ffbb405ed735afe52d3">CY_HPPASS_INTR_FIFO</a>);</div></div><!-- fragment -->
</div>
</div>
<a id="ga72012349c483c5a88064db46507a9289"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga72012349c483c5a88064db46507a9289">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_HPPASS_FIFO_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the interrupt for the specified FIFO. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">interrupt</td><td>The mask of interrupts allowable for activation. Each bit of this mask allows triggering of the particular interrupt in the FIFO <a class="el" href="group__group__hppass__fifo__level__interrupts.html">Group_hppass_fifo_level_interrupts</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable the FIFO#1 interrupt */</span></div><div class="line">    <a class="code" href="group__group__hppass__sar__fifo.html#ga72012349c483c5a88064db46507a9289">Cy_HPPASS_FIFO_SetInterruptMask</a>(<a class="code" href="group__group__hppass__fifo__level__interrupts.html#ga4267477619718a6dee7f45e7789dda9b">CY_HPPASS_INTR_FIFO_1_LEVEL</a>);</div></div><!-- fragment -->
</div>
</div>
<a id="gad9dbfe7a82adbf9de2aa0c56ad29d2e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad9dbfe7a82adbf9de2aa0c56ad29d2e1">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_GetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_HPPASS_FIFO_GetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the interrupt mask for the specified FIFO. </p>
<dl class="section return"><dt>Returns</dt><dd>The mask of the interrupts allowable for activation <a class="el" href="group__group__hppass__fifo__level__interrupts.html">Group_hppass_fifo_level_interrupts</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Get combined FIFO interrupt mask */</span></div><div class="line">    interrupt = <a class="code" href="group__group__hppass__sar__fifo.html#gad9dbfe7a82adbf9de2aa0c56ad29d2e1">Cy_HPPASS_FIFO_GetInterruptMask</a>();</div><div class="line">    <span class="comment">/* Process returned mask */</span></div></div><!-- fragment -->
</div>
</div>
<a id="gada81fb37fe9ba7fd8001c27c461a9d18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gada81fb37fe9ba7fd8001c27c461a9d18">&#9670;&nbsp;</a></span>Cy_HPPASS_FIFO_GetInterruptStatusMasked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_HPPASS_FIFO_GetInterruptStatusMasked </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets all FIFOs interrupt masked status. </p>
<dl class="section return"><dt>Returns</dt><dd>The masked status of combined interrupt requests for the FIFO <a class="el" href="group__group__hppass__fifo__level__interrupts.html">Group_hppass_fifo_level_interrupts</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Get all FIFOs interrupt masked status */</span></div><div class="line">    interrupt = <a class="code" href="group__group__hppass__sar__fifo.html#gada81fb37fe9ba7fd8001c27c461a9d18">Cy_HPPASS_FIFO_GetInterruptStatusMasked</a>();</div><div class="line">    <span class="comment">/* Process returned status */</span></div></div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
